package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class DriverTest {
    public static void main(String[] args) {
        Driver d=new Driver("老宋");
        d.name="小五";

        Car c=new Car("皖A8888","劳斯莱斯");

        Bus b=new Bus("118","曙光影院","科学大道");

        Taxi t=new Taxi("皖A49933");

        d.drive(c);
        System.out.println("------------------------------");
        d.drive(b);
        System.out.println("------------------------------");
        d.drive(t);
    }
}
